﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LocalizedSample
{
    public abstract class Localization
    {
        [Key, Column(Order = 0)]
        public int LCID { get; set; }
    }

    public abstract class Localization<T> : Localization
    {
        [InverseProperty("Localizations"), ForeignKey("TargetId")]
        public T Target { get; set; }
    }
}
